Why does TheyWorkForYou (TWFY) web API always returns '{}'

Posted by Tartley on Stack Overflow See other posts from Stack Overflow or by Tartley
Published on 2010-04-14T00:06:23Z Indexed on 2010/04/14 0:13 UTC
Read the original article Hit count: 602

Filed under:

I'm calling a web API exposed by TheyWorkForYou (TWFI). http://www.theyworkforyou.com/api/

I'm using the Python bindings provided by twfython: http://code.google.com/p/twfython/

I wrote some code to call this API a few months ago, at which time it worked fine. But now I dig it out to run it again, no matter what query I ask of the API, it always returns '{}' (an empty dictionary). For example the following code, which should return a list of all MPs:

from twfy import TWFY
API_KEY = 'XXXXXXXXXXXXXXXXXXXXXX'
twfy = TWFY.TWFY(API_KEY)
print twfy.api.getMPs(output='js')

Am I being really dumb? What else should I check?

© Stack Overflow or respective owner

Related posts about python